# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='node_info',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('node_access', models.CharField(max_length=2, verbose_name='\u6388\u6743\u72b6\u6001', blank=True)),
                ('node_name', models.CharField(max_length=255, verbose_name='\u8282\u70b9\u540d\u79f0')),
                ('NodeIP', models.CharField(unique=True, max_length=20, verbose_name='\u8282\u70b9ip')),
                ('Status', models.CharField(max_length=20, verbose_name='\u72b6\u6001', blank=True)),
                ('IP0', models.CharField(max_length=20, verbose_name='ip', blank=True)),
                ('Netmask0', models.CharField(max_length=20, verbose_name='netmask', blank=True)),
                ('IP1', models.CharField(max_length=20, verbose_name='ip1', blank=True)),
                ('Netmask1', models.CharField(max_length=20, verbose_name='netmask1', blank=True)),
                ('System_release', models.CharField(max_length=100, verbose_name='System_release', blank=True)),
                ('Kernel_release', models.CharField(max_length=100, verbose_name='Kernel_release', blank=True)),
                ('Frequency', models.CharField(max_length=100, verbose_name='Frequency', blank=True)),
                ('CPU_cores', models.CharField(max_length=100, verbose_name='CPU_cores', blank=True)),
                ('Mem_total', models.CharField(max_length=10, verbose_name='Mem_total', blank=True)),
                ('Swap_total', models.CharField(max_length=10, verbose_name='Swap_total', blank=True)),
                ('Disk_total', models.CharField(max_length=10, verbose_name='Disk_total', blank=True)),
                ('cpu', models.CharField(max_length=20, verbose_name='cpu', blank=True)),
                ('cpu_free', models.CharField(max_length=20, verbose_name='cpu_free', blank=True)),
                ('eth0', models.CharField(max_length=20, verbose_name='eth0', blank=True)),
                ('send_rate0', models.CharField(max_length=20, verbose_name='send_rate0', blank=True)),
                ('recv_rate0', models.CharField(max_length=20, verbose_name='recv_rate0', blank=True)),
                ('send_all_rate0', models.CharField(max_length=20, verbose_name='send_all_rate0', blank=True)),
                ('recv_all_rate0', models.CharField(max_length=20, verbose_name='recv_all_rate0', blank=True)),
                ('eth1', models.CharField(max_length=20, verbose_name='eth1', blank=True)),
                ('send_rate1', models.CharField(max_length=20, verbose_name='send_rate1', blank=True)),
                ('recv_rate1', models.CharField(max_length=20, verbose_name='recv_rate1', blank=True)),
                ('send_all_rate1', models.CharField(max_length=20, verbose_name='send_all_rate1', blank=True)),
                ('recv_all_rate1', models.CharField(max_length=20, verbose_name='recv_all_rate1', blank=True)),
                ('Mem_used', models.CharField(max_length=10, verbose_name='Mem_used', blank=True)),
                ('Mem_free', models.CharField(max_length=10, verbose_name='Mem_free', blank=True)),
                ('Mem_per', models.CharField(max_length=10, verbose_name='Mem_per', blank=True)),
                ('Swap_used', models.CharField(max_length=10, verbose_name='Swap_used', blank=True)),
                ('Swap_free', models.CharField(max_length=10, verbose_name='Swap_free', blank=True)),
                ('Swap_per', models.CharField(max_length=10, verbose_name='Swap_per', blank=True)),
                ('Disk_used', models.CharField(max_length=10, verbose_name='Disk_used', blank=True)),
                ('Disk_free', models.CharField(max_length=10, verbose_name='Disk_free', blank=True)),
                ('Disk_per', models.CharField(max_length=10, verbose_name='Disk_per', blank=True)),
                ('cache', models.CharField(max_length=10, verbose_name='cache', blank=True)),
                ('token', models.CharField(max_length=100, verbose_name='\u8282\u70b9\u5bc6\u94a5', blank=True)),
            ],
            options={
                'ordering': ['node_name'],
                'verbose_name': '\u8282\u70b9\u540d\u79f0',
                'verbose_name_plural': '\u8282\u70b9\u540d\u79f0',
            },
        ),
        migrations.CreateModel(
            name='nodegroup',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('nodegroup_name', models.CharField(max_length=100, verbose_name='\u8282\u70b9\u7ec4', blank=True)),
                ('area', models.CharField(max_length=100, verbose_name='\u5730\u57df', blank=True)),
            ],
            options={
                'ordering': ['area'],
                'verbose_name': '\u8282\u70b9\u7ec4',
                'verbose_name_plural': '\u8282\u70b9\u7ec4',
            },
        ),
        migrations.CreateModel(
            name='route',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('route_name', models.CharField(max_length=100, verbose_name='\u8282\u70b9\u7ec4', blank=True)),
                ('area', models.CharField(max_length=100, verbose_name='\u5730\u57df', blank=True)),
            ],
            options={
                'ordering': ['area'],
                'verbose_name': '\u7ebf\u8def',
                'verbose_name_plural': '\u7ebf\u8def',
            },
        ),
        migrations.AddField(
            model_name='node_info',
            name='nodegroup',
            field=models.ForeignKey(to='Nodecontrol.nodegroup'),
        ),
        migrations.AddField(
            model_name='node_info',
            name='route',
            field=models.ForeignKey(to='Nodecontrol.route'),
        ),
    ]
